package File;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2022-08-12
 * Time: 16:33
 */
public class Demo4 {
    // 创建目录
    public static void main(String[] args) {
        File file = new File("test/aa/1");
        System.out.println(file.exists());
        System.out.println(file.isDirectory());
        System.out.println("=========================");
        //System.out.println(file.mkdir());
        System.out.println( file.mkdirs());
        System.out.println(file.exists());
        System.out.println(file.isDirectory());
    }
}
